<script setup>
import {inject} from "vue";

const DEFAULT_WORD = inject("DEFAULT_WORD");
</script>
<template>
  <div class="tail_box">
    <div class="tail-content">
      <div class="tail-logo">
        <h3>{{DEFAULT_WORD.red_coral_platform}}</h3>
        <p>www.red-coral.cn</p>
      </div>
      <div class="tail-links">
        <a href="#" class="tail-link">问题反馈</a>
        <a href="" target="_blank" class="tail-link">{{DEFAULT_WORD.joinUs}}</a>
        <a href="#" class="tail-link">隐私政策</a>
        <a href="https://beian.miit.gov.cn/" class="tail-link beian">陕ICP备2023014750号-1</a>
      </div>
    </div>
    <div class="tail-copyright">
      <p>© 2023 {{DEFAULT_WORD.red_coral_platform}} 版权所有</p>
    </div>
  </div>
</template>
<style scoped>
.tail_box {
  background-color: #f8f9fa;
  min-height: 150px;
  width: 100%;
  margin-top: 50px;
  padding: 30px 0;
  color: #555;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.05);
}

.tail-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 20px;
}

.tail-logo {
  margin-bottom: 20px;
}

.tail-logo h3 {
  font-size: 18px;
  margin: 0 0 10px 0;
  color: #333;
}

.tail-logo p {
  margin: 0;
  font-size: 14px;
}

.tail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.tail-link {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  position: relative;
}

.tail-link:hover {
  color: #409EFF;
}

.tail-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #409EFF;
  transition: width 0.3s ease;
}

.tail-link:hover:after {
  width: 100%;
}

.beian {
  color: #888;
}

.tail-copyright {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #888;
}

@media (max-width: 768px) {
  .tail-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tail-links {
    justify-content: center;
    margin-top: 20px;
  }
}
</style>
